package com.easy.service;

import com.easy.bean.Orders;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IOrdersService {
    int addOrders(Orders orders);
    int editOrders(Orders orders);
    int deleteOrders(int id);
    List<Orders> selectOrders(Page page,String text);
    Orders getOrdersById(int id);
    int OrdersCount(String text);
    List<Orders> getOrderdetailsByUserid(int userid);
    Orders getOrderByOrderId(int orderid);

    String payment(int orderid);
    int cancleOrder();
    Orders getOrderByCode(String code);
}
